package com.example.auth.model.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 系统菜单/权限表
 * </p>
 *
 * @author xijie.wang
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysMenu对象", description = "系统菜单/权限表")
public class SysMenuVO implements Serializable {

	private static final long serialVersionUID = 8464086740447019621L;

	private Integer id;

	@ApiModelProperty(value = "父级ID")
	private Integer pid;

	@ApiModelProperty(value = "文本内容")
	private String title;

	@ApiModelProperty(value = "链接的url")
	private String url;

	@ApiModelProperty(value = "菜单的icon")
	private String icon;

	@ApiModelProperty(value = "权限标识符：对于后台控制类定义。示例：user:list")
	private String code;

	@ApiModelProperty(value = "权限类型：1- 目录 | 2 - 菜单-主菜单 | 3 - 按钮 | 5-左侧菜单")
	private Integer type;

	@ApiModelProperty(value = "菜单 排序  数值越大越靠前")
	private Integer ord;

	@ApiModelProperty(value = "状态：  0-正常 | 1-封禁 | 2-正常且禁止封禁")
	private Integer status;

}
